<div class="col-sm-12">
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="form-group form-inline">
                <div class="col-md-6">
                    <p class="form-control-static">
                        <input type="text" class="form-control" ng-model="seller_name" placeholder="请输入商户名称">
                        <button type="button" class="btn btn-primary" ng-click="searchbyname()">搜索</button>
                    </p>
                </div>
                <div class="col-md-2">
                    <p class="form-control-static">
                        账户余额：{{balance_price | currency : '¥'}}
                    </p>
                </div>
                <div class="col-xs-4 text-right">
                    <button type="button" class="btn btn-default pull-right" ng-click="back()">退回预存</button>
                    <button type="button" class="btn btn-info new" ng-click="create()" has-permission='createdeposit'>创建预存</button>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-body">
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th class="col-md-5 text-center">商户名称</th>
                        <th class="col-md-1 text-center">余额</th>
                        <th class="col-md-1 text-center">信用额度</th>
                        <th class="col-md-1 text-center">短信提示余额不足阀值</th>
                        <th class="col-md-1 text-center">是否发送短信</th>
                        <th class="col-md-1 text-center">手机号码</th>
                        <th class="col-md-2 text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="obj in aggregate">
                        <td class="">{{obj.seller_name}}</td>
                        <!-- <td class="text-center">{{obj.total_price | currency : '¥'}}</td> -->
                        <td class="text-center">{{obj.balance_price | currency : '￥'}}</td>
                        <td class="text-center">{{obj.loan_limit_price | currency : '￥'}}</td>
                        <td class="text-center">{{obj.send_sms_price | currency : '￥' }}</td>
                        <td class="text-center" ng-show="obj.send_sms_flag === '1' ">是</td>
                        <td class="text-center" ng-show="obj.send_sms_flag === '0' ">否</td>
                        <td class="text-center">{{obj.send_sms_mobile}}</td>
                        <td class="text-center">
                            <a ng-click="recharge(obj)" class="btn btn-success btn-xs">充值</a>
                            <a ng-click="update(obj)" class="btn btn-danger btn-xs">编辑</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

</div>